const https = require('https')

// 数据抓取
https.get('https://news.ke.com/bj/baike/0725210.html', res => {

  let html = ''
  res.on('data', chunk => html += chunk)
  res.on('end', () => {
    const preg = /<title>(.*)<\/title>/i
    let arr = html.match(preg)
    console.log(arr[1]);
  })
})




